package kr.jobseeker.movinavi;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;


public class Main extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		Button theater = (Button)findViewById(R.id.theater_button);
		Button rest = (Button)findViewById(R.id.rest_button);
		theater.setOnClickListener(theaterBtn);
		rest.setOnClickListener(restBtn);

	}
	
	private View.OnClickListener theaterBtn = new View.OnClickListener() {
		@Override
		public void onClick(View arg0) {
			Intent intent = new Intent(getBaseContext(), MapHandling.class);
			intent.putExtra("type", "영화관");
			startActivity(intent);
		}
	};
	
	private View.OnClickListener restBtn = new View.OnClickListener() {
		@Override
		public void onClick(View arg0) {
			Intent intent = new Intent(getBaseContext(), MapHandling.class);
			intent.putExtra("type", "음식점"); 
			startActivity(intent);
		}
	};
}